package gui;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;

import javax.swing.Icon;
import javax.swing.JLabel;

public class CustomJLabel extends JLabel{
	
	private static final long serialVersionUID = -2382273770919234099L;

	public CustomJLabel() {
		setForeground(Color.WHITE);
	}

	@Override
	public void setIcon(Icon icon) {
		super.setIcon(icon);
	}

	@Override
	protected void paintComponent(Graphics g) {	
		
        Graphics2D g2D = (Graphics2D) g;
        // ////////////////////////////////////////////////////////////////
        // antialiasing
        g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                 RenderingHints.VALUE_ANTIALIAS_ON);
        // ////////////////////////////////////////////////////////////////
        g2D.setFont(new Font("sansserif", Font.PLAIN, 12));
        g2D.setColor(new Color(0, 0, 0, 220));
        g2D.drawString(getText(), 1, 11);
        
        g2D.setFont(new Font("sansserif", Font.PLAIN, 12));
	    g2D.setColor(new Color(255, 255, 255));
	    g2D.drawString(getText(), 0, 10);
	      
        g2D.dispose();
	}
	
	
}
